<div id='user_edit'>
<h3>Edit user</h3>
<hr />
<?php
echo $this->form;
?>
</div>
<script language='javascript'>
$(function(){
	$('#password').attr("disabled",true);
	$('#passwFlag').bind('change', function(){
		var flag = $('#password').attr('disabled');
		if(flag){
			$('#password').attr("disabled",false);
		}else{
			$('#password').attr("disabled",true);
		}
	});
});
</script>